import 'package:getx_learn/app/modules/weichat_post/entity/index.dart';
import 'package:json_annotation/json_annotation.dart';

part 'comment.g.dart';

@JsonSerializable()
class CommentModel {
  UserModel? user;

  String? content;

  String? publishDate;

  CommentModel({this.user, this.content, this.publishDate});

  factory CommentModel.fromJson(Map<String, dynamic> json) =>
      _$CommentModelFromJson(json);

  Map<String, dynamic> toJson() => _$CommentModelToJson(this);
}
